package com.shensi.api.admin.client.system;

import com.shensi.api.admin.client.fallback.system.SysStationPayClientFallBack;
import com.shensi.common.core.constant.CloudConstant;
import com.shensi.common.core.domain.entity.SysDept;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.ResponseBody;

/**
 * @author: budian
 * @since: 2023/11/30
 */
@FeignClient(
        value = CloudConstant.ADMIN_SERVER,
        fallbackFactory = SysStationPayClientFallBack.class)
@Component
public interface SysStationPayClient {

    @ResponseBody
    @PostMapping("/StationPay")
    public String getJhPayInfo(@RequestBody SysDept dept) throws Exception;
}
